﻿@model Sys_User
<div class="col-sm-1"></div>
<form class="form-horizontal col-sm-10" role="form" method="POST" action="/ManageArea/Home/SaveUser" id="formUser">
    <input name="id" type="hidden" data-bind='value: Id' />
    <div class="form-group">
        <label for="" class="col-sm-3 control-label">用户名</label>
        <div class="col-sm-9">
            <input class="form-control" id="UserName" name="UserName" placeholder="用户名" data-bind='value: UserName'>
        </div>

    </div>
    <div class="form-group">
        <label for="" class="col-sm-3 control-label">密码</label>
        <div class="col-sm-9">
            <input type="password" class="form-control" id="Password" name="Password" placeholder="密码" data-bind='value: Password'>
        </div>
    </div>
    <div class="form-group">
        <label for="" class="col-sm-3 control-label">确认密码</label>
        @*<div class="col-sm-9">
            <input type="password" class="form-control" id="RePassword" name="RePassword" placeholder="确认密码" data-bind='value: editUser.Password'>
        </div>*@
    </div>
    <div class="form-group">
        <label for="RealName" class="col-sm-3 control-label">真实姓名</label>
        <div class="col-sm-9">
            <input class="form-control" id="RealName" name="RealName" data-bind='value: RealName' placeholder="真实姓名">
        </div>
    </div>

    <div class="form-group">
        <label for="" class="col-sm-3 control-label">角色</label>
        <div class="col-sm-9">
            @if (ViewBag.roles != null)
            {
                foreach (var item in ViewBag.roles)
                {
                    <label class="checkbox-inline">
                        <input type="checkbox" id="inlineCheckbox1" value="@item.Id"> @item.RoleName
                    </label>
                }
            }
            <script>
                var userInfo = @MvcHtmlString.Create(ViewBag.user)
            </script>
        </div>
    </div>
</form>
<div class="col-sm-1"></div>